<script>
  export default {
       data() {
        return {
             count: 10
            }
    },
    methods:{
        comp(){
           this.count++  
         }

    }
}
 

</script>
<template>
  <div>
  <label for="">Count is: {{ count }}</label><br>
  <button @click="comp">
    点击计数
  </button>

  <p>{{count}}</p>
</div>
</template>
<style>
button{
font-weight: bold;}
</style>